package com.devops.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.devops.admin.model.DOSHelmChartUserRelation;
import com.devops.admin.po.DOSChartUserVo;

import java.util.List;

/**
 * @ClassNem DOSHelmChartUserRelationService
 * @Description TODO
 * @Author heyabo
 * @Date 2022/3/23 15:20
 * @Version 1.0
 **/
public interface DOSHelmChartUserRelationService extends IService<DOSHelmChartUserRelation> {

    /**
     * @Author heyabo
     * @Description 为chart分配人员
     * @Date 09:44 2022/3/24
     * @Param [relation]
     * @return boolean
     **/
    boolean distributionUser(DOSHelmChartUserRelation relation);

    /**
     * @Author heyabo
     * @Description 获取chart下绑定的人员信息
     * @Date 10:22 2022/3/24
     * @Param [chartId]
     * @return java.util.List<com.devops.admin.model.DOSHelmChartUserRelation>
     **/
    List<DOSChartUserVo> getUserList(Integer chartId);
}
